package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: jie.zhao
 * @create: 2021/07/27 14:16
 */
@FeignClient(value = "lagou-service-email")
@RequestMapping("/api/email")
@Component
public interface LaGouServiceEmailClient {


    @GetMapping("/sendCode/{email}/{code}")
    public boolean sendCode(@PathVariable String email,@PathVariable String code);


}
